package com.hfh.pattern;

/**
 * @Author hfh
 * @Date 2022 09 16 14 42
 **/
public class Client2 {
    public static void main(String[] args) {
//        CoffeeStore2 coffeeStore2 = new CoffeeStore2(new LatteCoffeeFactory());
//        Coffee coffee = coffeeStore2.orderCoffee("拿铁咖啡");
        CoffeeStore2 coffeeStore2 = new CoffeeStore2(new CappuccinoCoffeeFactory());
        Coffee coffee = coffeeStore2.orderCoffee("卡布奇诺");
        System.out.println(coffee.getName());
    }
}
